/**
 * Created by hps on 17-4-30.
 */
public class LinkListApp {
    public static void main(String[] args) {
        LinkList theList = new LinkList();
        theList.insertFirst(new Link(22, 2.99));
        theList.insertFirst(new Link(44, 4.99));
        theList.insertFirst(new Link(66, 6.99));
        theList.insertFirst(new Link(88, 8.99));

        theList.displayList();

        while (!theList.isEmpty()) {
            Link aLink = theList.deleteFirst();
            System.out.print("Deleted ");
            aLink.displayLink();
            System.out.println();
        }
        theList.displayList();
    }

}
